const btn = document.getElementById('btn')
var tmpEle
btn.onclick = function () {
  var ul = document.createElement('ul')
  for (var i = 0; i < 10; i++) {
    var li = document.createElement('li')
    ul.appendChild(li)
  }
  tmpEle = ul
  ul = null
}